import config from '@/config'
import RequestBase from '@/utils/request.js'

const baseRequest = new RequestBase(config.safetyUrl)

// /**
//  * 查询全部隐患台账
//  */
// export function getAllValidList(data) {
//   return baseRequest.get("/business/app/hidden-danger/manage/list", data);
// }

// /**
//  * 查询我的隐患台账
//  */
// export function getMyHandleList(data) {
//   return baseRequest.get("/business/app/hidden-danger/manage/my-list", data);
// }

/**
 * 查询隐患台账
 */
export function getHiddenDangerList(data) {
  return baseRequest.get('/business/app/hidden-danger/manage/list', data)
}

/**
 * 查询我的隐患详情
 */
export function getHiddenDangerDetail(id) {
  return baseRequest.get(`/business/app/hidden-danger/manage/detail/${id}`)
}
